import scrapy
from curl_cffi.requests.session import Session

from utils.chrome_version import chrome_version


class CurlSpider(scrapy.Spider):
    curl_session = Session(impersonate=chrome_version.randon_google_chrome_version)
    custom_settings = {
        "DOWNLOADER_MIDDLEWARES":{
            "tutorial.downloader_middlewares.curl_downloader_middleware.CurlDownloaderMiddleware": 543
        }
    }
